<html>
<head>
	<!--<LINK href="style/template.php" rel="stylesheet" type="text/css">-->
	<LINK href="style/bootstrap.css" rel="stylesheet" type="text/css">
	<LINK href="style/tempstrap.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
//require_once("lib/auth/session.php");//session call is probably only needed in lib/ files
//require_once("lib/auth/user.php");
//require_once("lib/post/view.php");
require_once("library/template.php");
require_once("modules/contentWrap.php");
beforeContent();
?>
<table>
	<tr><td><p>Posts made by this user:</p></td><td><p><?php echo getNumberOfPosts();?></p></td></tr>
	<tr><td><p>Average hate of user's post:</p></td><td><p><?php echo translateRating(getAverageHate());?></p></td></tr>
</table>
<form action="/api/auth/user.php" method="POST">
<fieldset>
    <legend>User preferences</legend>
<table>
	<tr><td><Label style="display:inline">Username</Label></td>
	<td><input type="text" name="name" placeholder="<?php echo getName();?>"/></td></tr>
	<tr><td><Label style="display:inline">Something else</Label></td>
	<td><input type="text" name="stuff" placeholder="PLACEHOLDER"/></td></tr>
	<tr><td><input type="submit" name="submit" value="Apply"/></td></tr>
</table>
</fieldset>
</form>
<?php 
afterContent();?>